package utils

import "github.com/jinzhu/copier"

func CopyStruct(dest, src any) error {
	return copier.Copy(dest, src)
}

func DeepCopyStruct(dest, src any) error {
	opt := copier.Option{
		DeepCopy: true,
	}
	return copier.CopyWithOption(dest, src, opt)
}
